﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Helpers.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Layout.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/JqueryUIfixes.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.6.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jQuery.tmpl.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.tools.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Site.js")" type="text/javascript"></script>
    @RenderSection("headElements", false)
</head>
<body>
    <div class="page">
        <div id="content">
            <header>
                <a id="logo" href="@Url.Action("Index", "Home")"></a>
                <div id="userContainer">
                    @if (UserHelper.IsLogon())
                    {
                        <div class="field">
                            <div class="label">
                                משתמש מחובר
                            </div>
                            <div class="value">
                                @UserHelper.CurrentUser().FirstName @UserHelper.CurrentUser().LastName
                            </div>
                        </div>
                        <div class="field">
                            <div class="label">
                                דוא"ל
                            </div>
                            <div class="value">
                                @UserHelper.CurrentUser().Email
                            </div>
                        </div>
                        <div class="field">
                            <div class="label">
                                סוג משתמש
                            </div>
                            <div class="value">
                                @UserHelper.CurrentUser().UserPermission.UserPermissionName
                            </div>
                        </div>
                    }
                    else
                    {
                        <div class="alignCenter">
                            לא מחובר
                        </div>
                    }
                </div>
                <nav>
                    <ul>
                        @if (UserHelper.IsLogon())
                        {
                            if (UserHelper.CurrentUser().UserPermissionId != (int)AlbumDesigner.Models.Enums.AlbumUsers.Client)
                            {
                                <li><a href="@Url.Action("Index", "Admin")">פאנל ניהול</a></li>
                            }
                            <li><a href="@Url.Action("Logout", "Users")">התנתק</a></li>
                        }
                    </ul>
                </nav>
                <div class="clear">
                </div>
            </header>
            <section id="main">
                @RenderBody()
                <div class="clear">
                </div>
            </section>
        </div>
        <footer>Elinir School
        </footer>
    </div>
    <div id="divMainDialog">
    </div>
    <div id="divConfirmDialog" class="hidden">
        <div id="divDialogMessage">
            האם אתה בטוח?</div>
        <div id="divDialogButtons">
            <input type="button" id="btnDialogYes" value="כן" class="button" />
            <input type="button" id="btnDialogNo" value="לא" class="button" />
        </div>
    </div>
    <script type="text/javascript">
        //save the prefix that should be on the URL paths (according to the root of the application) - to support developer and production enviornment
        var pathPrefix = '@Url.Action("Index", "Home")';
    </script>
</body>
</html>
